

    PHP  ӵ  ϴ ȭ ڵ  





1. echo print  .


2. string δµ ־ ǥ(')  ūǥ(") ,   PHP ūǥȿ  ã  ǥ  ã ʱ ̴. string  ٸ ǥ ض


3. echo string ؼ ϴ° ſ  Ķ͸ ־ ض


4. ̸   ض. for ؼ ū Ҷ  


     for($x=0;$x<count($array);$x) count() Ź ȣѴ. $max = count($array) for  ϱ  ض



5. ޸ free ؼ  unset Ǵ null ض. Ư ū 迭


6. str_replace preg_replace . str_replace ظϸ ְ̰, ׷ strstr 

    ū string  . str_replaceȿ 迭 ϴ    str_replace  ͺ .



7. else if  switch 



8. ϰ ͺ̽ connection ݾƶ



9. $row['id'] $row[id] 7谡 . ǥ  , ý   ǹ ε ؾѴ.



10. php Ҷ <?php ... ?>  . ٸ Ÿ  ҷ



11.  ڵ带 , notice warning, error Ⱥ̰ ϴ° .   ڵ  ϰ Ǵ  Ÿ. error_reporting(E_ALL)  ׻ ѳ  .



12. header('location:'.$url); Ҷ exit Բ ϴ° ض. location ٲ ұϰ ũƮ  ȴ.



13. ̸ ʱȭѰ Ҷ     9~10 



14. derived class ޼ҵ尡 base class ޼ҵ庸 



15.   ʰ ϴ @ ſ 











ó : http://www.noamdesign.com/Web-Design-Blog/15-tips-to-optimizing-your-php-code/ 
